home *** CD-ROM | disk | FTP | other *** search
- on TestPuzzle
- global spritelist, Piece, WCellLoc, FirstChannel, spnum, EndWhiteLoc
- set spritelist to []
- set ACount to 1
- repeat while ACount <= EndWhiteLoc
- add(spritelist, ACount - 1)
- set ACount to ACount + 1
- end repeat
- add(spritelist, (Piece * Piece) - 1)
- repeat while ACount <= (Piece * Piece)
- add(spritelist, ACount - 1)
- set ACount to ACount + 1
- end repeat
- set spnum to 8 + FirstChannel
- set WCellLoc to EndWhiteLoc
- SwapPiece()
- RelocatePuzzle()
- end
-